#include <unistd.h>
#include <iostream>
int main() {
    pid_t pid,ppid;
    pid = getpid();
    ppid = getppid();
    std::cout<<"当前进程号:"<<pid<<"父进程:"<<ppid<<"\n";
    return 0;
}